package com.disease.chronic.Controller;

import com.disease.chronic.Global.Result;
import com.disease.chronic.Service.IndicatorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
@RequestMapping("/indicator")
public class IndicatorController {

    @Autowired
    IndicatorService indicatorService;

    @GetMapping("/select")
    public @ResponseBody Result getIndicators(@RequestParam("username")String username){
        return indicatorService.selectIndicator(username);
    }



}
